package com.zhq.client;

import com.zhq.entity.TOrder;
import com.zhq.util.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class OrderClientHandler implements OrderClient{
    @Override
    public R<List<TOrder>> list() {

        log.info("访问订单列表失败！");
        return R.fail("访问订单列表失败！");
    }

    @Override
    public R add(TOrder order) {
        return null;
    }

    @Override
    public R update(TOrder order) {
        return null;
    }

    @Override
    public R delete(Integer id) {
        return null;
    }

    @Override
    public R getPort(){
        log.info("访问订单端口失败！");
        return R.fail("访问订单服务端口失败！");
    }
}
